package com.d0306;

public class Number {
    public static void main(String[] args) {
        int i = 1, temp, j;
        while (i < 100) {
            j = i;
            temp = 1;
            while (temp <= i / 2) {
                if ((i % temp) == 0) j -= temp;
                temp++;
            }
            if (j == 0) System.out.println(" " + i);
            i++;
        }
    }}
